<div class="span11">
	<div class="row-fluid">
		<legend>Agregar nueva persona</legend>
		<tr>
		<?php echo $this->Html->link(__("Listado de Personas", true), '/personas/index/', array('title' => __('Listado de Personas', true), 'class'=>'btn btn-mini btn-primary')); ?>
		</tr>
		<table class="table table-hover table-condensed">	
	      	<tbody>
	      		<fieldset>
				<?php
					echo $this->Form->create('Persona',array('type'=>'file'));
				?>
				    <div class="row">
				    	<div class="span4">
				    	<?php
							echo $this->Form->input('nombre');
							echo $this->Form->input('apellido_paterno');
							echo $this->Form->input('apellido_materno');
							echo $this->Form->input('rut');
							$paises = $regiones = array(1,2,3,4,5);
							echo $this->Form->input('email');
							echo $this->Form->input('telefono');
							echo $this->Form->input('celular');
						?>
				    	</div>
				    	<div class="span4">
						<?php
							
							echo '
							<div class="control-group">
								<label class="control-label" for="PersonaFechaNacimiento">' . __('Fecha Nacimiento', true) . '</label>
									<div class="controls">
										<div id="datapickerFechaNacimiento" class="input-append date" data-date-format="yyyy-mm-dd" data-date="' . date("Y-m-d") . '">
											<input class="input-small" id="PersonaFechaNacimiento" name="data[Persona][FechaNacimiento]" type="text" value="' . date("Y-m-d") . '">
											<span class="add-on">
												<i class="icon-calendar"></i>
											</span>
										</div>
									</div>
							</div>';
							echo $this->Form->input('direccion');
							echo $this->Form->input('pais',array('options'=> $paises));
							echo $this->Form->input('region',array('options'=> $regiones));
							echo $this->Form->input('comuna',array('options'=> $regiones));
						?>    		
				    	</div>
				    	<div class="span4">
						<?php
							echo $this->Form->input('empresa');
							echo $this->Form->input('cargo');
							echo $this->Form->input('username');   
        					echo $this->Form->input('password');
							echo "Foto";
							echo $this->Form->file('foto');
						?>    		
				    	</div>
				    </div>
				</fieldset>
				<?php
					echo $this->Form->end('Añadir Persona');
				?>
	      	</tbody>
		</table>
	</div>
</div>